package com.example.asyncquery.model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class QueryResult<T> {
    private String queryId;              // 查询ID
    private QueryStatus status;          // 查询状态
    private T data;                      // 查询结果数据
    private String message;              // 状态消息
    private LocalDateTime startTime;     // 查询开始时间
    private LocalDateTime endTime;       // 查询结束时间
} 